package com.crm.common.model.Enum.csd;

/**
 * @author yincuimei
 * @Date 2021/11/5 16:39
 */
public enum ContactExamineEnum {
    EXAMINE_NO_CHECKED(0,"未审核"),
    EXAMINE_REAL_DATA(1,"真实"),
    EXAMINE_ERROR_DATA(2,"错误");

    private Integer examineCode;
    private String examineMessage;

    ContactExamineEnum(Integer examineCode,String examineMessage) {
        this.examineCode = examineCode;
        this.examineMessage = examineMessage;
    }

    public static String getExamineMessage(Integer examineCode) {
        for (ContactExamineEnum contactExamineEnum : values()) {
            if(contactExamineEnum.examineCode == examineCode){
                return contactExamineEnum.examineMessage;
            }
        }
        return "";
    }
}
